package me.xplabs.model.proxy 
{
	import flash.utils.getQualifiedClassName;
	import me.xplabs.Globals;
	import org.puremvc.as3.patterns.proxy.Proxy;
	
	/**
	 * ...
	 * @author xiaohan
	 */
	public class MSkillManagerProxy extends Proxy 
	{
		public static var NAME:String;
		public var isUpdate:Boolean;
		public function MSkillManagerProxy() 
		{
			NAME = getQualifiedClassName(this);
			super(NAME, null);
		}
		/**
		 * 开启数据刷新
		 */
		public function startUpdate():void
		{
			if (isUpdate) return;
			isUpdate = true;
			Globals.gameManager.addDataUpdate(update);
		}
		/**
		 * 关闭数据刷新
		 */
		public function stopUpdate():void
		{
			if (!isUpdate) return;
			isUpdate = false;
			Globals.gameManager.delDataUpdate(update);
		}
		
		private function update():void 
		{
		}
	}

}